function Rect()
{
    this.x      = 20;
    this.y      = 20;
    this.width  = 40
    this.height = 40
}

Rect.prototype.draw = function( context )
{
    context.save(); 
    context.fillRect( this.x, this.y, this.width, this.height );
    context.restore();
}